<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: ADC_Private_Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">ADC_Private_Functions<div class="ingroups"><a class="el" href="group___w_b32_l003___std_periph___driver.html">WB32L003_StdPeriph_Driver</a> &raquo; <a class="el" href="group___a_d_c.html">ADC</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ga1962afdd9eebe5c896bbba2e4f26fe09"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_d_c___private___functions.html#ga1962afdd9eebe5c896bbba2e4f26fe09">ADC_DeInit</a> (void)</td></tr>
<tr class="memdesc:ga1962afdd9eebe5c896bbba2e4f26fe09"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deinitializes the ADC peripheral registers to their default reset values.  <a href="#ga1962afdd9eebe5c896bbba2e4f26fe09">更多...</a><br /></td></tr>
<tr class="separator:ga1962afdd9eebe5c896bbba2e4f26fe09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadc1012522059ab30d266fe9d634a2bde"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_d_c___private___functions.html#gadc1012522059ab30d266fe9d634a2bde">ADC_Init</a> (<a class="el" href="struct_a_d_c___init_type_def.html">ADC_InitTypeDef</a> *ADC_InitStruct)</td></tr>
<tr class="memdesc:gadc1012522059ab30d266fe9d634a2bde"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the ADC peripheral according to the specified parameters in the ADC_InitStruct.  <a href="#gadc1012522059ab30d266fe9d634a2bde">更多...</a><br /></td></tr>
<tr class="separator:gadc1012522059ab30d266fe9d634a2bde"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6c6e754d1d0a98d56e465efaf73272ec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_d_c___private___functions.html#ga6c6e754d1d0a98d56e465efaf73272ec">ADC_StructInit</a> (<a class="el" href="struct_a_d_c___init_type_def.html">ADC_InitTypeDef</a> *ADC_InitStruct)</td></tr>
<tr class="memdesc:ga6c6e754d1d0a98d56e465efaf73272ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills each ADC_InitStruct member with its default value.  <a href="#ga6c6e754d1d0a98d56e465efaf73272ec">更多...</a><br /></td></tr>
<tr class="separator:ga6c6e754d1d0a98d56e465efaf73272ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga17fefa48db4b468048475c4a23356d69"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_d_c___private___functions.html#ga17fefa48db4b468048475c4a23356d69">ADC_Cmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga17fefa48db4b468048475c4a23356d69"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the ADC peripheral.  <a href="#ga17fefa48db4b468048475c4a23356d69">更多...</a><br /></td></tr>
<tr class="separator:ga17fefa48db4b468048475c4a23356d69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1a7977f0de450fb7e1d38fd42d71ef33"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_d_c___private___functions.html#ga1a7977f0de450fb7e1d38fd42d71ef33">ADC_ITConfig</a> (uint32_t ADC_IT, FunctionalState NewState)</td></tr>
<tr class="memdesc:ga1a7977f0de450fb7e1d38fd42d71ef33"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the specified ADC interrupts.  <a href="#ga1a7977f0de450fb7e1d38fd42d71ef33">更多...</a><br /></td></tr>
<tr class="separator:ga1a7977f0de450fb7e1d38fd42d71ef33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga70dcb2d976b8dc5cbcbc10ad5f6ff751"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_d_c___private___functions.html#ga70dcb2d976b8dc5cbcbc10ad5f6ff751">ADC_SoftwareStartConvCmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga70dcb2d976b8dc5cbcbc10ad5f6ff751"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the selected ADC software start conversion.  <a href="#ga70dcb2d976b8dc5cbcbc10ad5f6ff751">更多...</a><br /></td></tr>
<tr class="separator:ga70dcb2d976b8dc5cbcbc10ad5f6ff751"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae64ae715dd57b437adeaa18bf28cc3ef"><td class="memItemLeft" align="right" valign="top">FlagStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_d_c___private___functions.html#gae64ae715dd57b437adeaa18bf28cc3ef">ADC_GetSoftwareStartConvStatus</a> (void)</td></tr>
<tr class="memdesc:gae64ae715dd57b437adeaa18bf28cc3ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the selected ADC Software start conversion Status.  <a href="#gae64ae715dd57b437adeaa18bf28cc3ef">更多...</a><br /></td></tr>
<tr class="separator:gae64ae715dd57b437adeaa18bf28cc3ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac66330e8d2a07e90c31102da2b7ed5db"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_d_c___private___functions.html#gac66330e8d2a07e90c31102da2b7ed5db">ADC_GetConversionValue</a> (uint32_t Channel)</td></tr>
<tr class="memdesc:gac66330e8d2a07e90c31102da2b7ed5db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the last ADC conversion result data for regular channel.  <a href="#gac66330e8d2a07e90c31102da2b7ed5db">更多...</a><br /></td></tr>
<tr class="separator:gac66330e8d2a07e90c31102da2b7ed5db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1cca8fc361e233eb5eb2b60f5dd28dda"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_d_c___private___functions.html#ga1cca8fc361e233eb5eb2b60f5dd28dda">ADC_GetAccValue</a> (void)</td></tr>
<tr class="memdesc:ga1cca8fc361e233eb5eb2b60f5dd28dda"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets ADC accumulation conversion result.  <a href="#ga1cca8fc361e233eb5eb2b60f5dd28dda">更多...</a><br /></td></tr>
<tr class="separator:ga1cca8fc361e233eb5eb2b60f5dd28dda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5d766f4ed702e465183b7d91cfbe12f1"><td class="memItemLeft" align="right" valign="top">ITStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_d_c___private___functions.html#ga5d766f4ed702e465183b7d91cfbe12f1">ADC_GetITStatus</a> (uint16_t ADC_IT)</td></tr>
<tr class="memdesc:ga5d766f4ed702e465183b7d91cfbe12f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the specified ADC interrupt is set or not.  <a href="#ga5d766f4ed702e465183b7d91cfbe12f1">更多...</a><br /></td></tr>
<tr class="separator:ga5d766f4ed702e465183b7d91cfbe12f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0de1904ef4253ab214087422aedbbabe"><td class="memItemLeft" align="right" valign="top">FlagStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_d_c___private___functions.html#ga0de1904ef4253ab214087422aedbbabe">ADC_GetFlagStatus</a> (uint16_t ADC_FLAG)</td></tr>
<tr class="memdesc:ga0de1904ef4253ab214087422aedbbabe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the specified ADC flag is set or not.  <a href="#ga0de1904ef4253ab214087422aedbbabe">更多...</a><br /></td></tr>
<tr class="separator:ga0de1904ef4253ab214087422aedbbabe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga06e8047db33c89ef576bf868f7d011c8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_d_c___private___functions.html#ga06e8047db33c89ef576bf868f7d011c8">ADC_ClearITPendingBit</a> (uint16_t ADC_IT)</td></tr>
<tr class="memdesc:ga06e8047db33c89ef576bf868f7d011c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the ADC pending interrupt bits.  <a href="#ga06e8047db33c89ef576bf868f7d011c8">更多...</a><br /></td></tr>
<tr class="separator:ga06e8047db33c89ef576bf868f7d011c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae3abfa0c2180f80f80ac898d3bc2e043"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_d_c___private___functions.html#gae3abfa0c2180f80f80ac898d3bc2e043">ADC_ClearFlag</a> (uint16_t ADC_FLAG)</td></tr>
<tr class="memdesc:gae3abfa0c2180f80f80ac898d3bc2e043"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the ADC pending interrupt flags.  <a href="#gae3abfa0c2180f80f80ac898d3bc2e043">更多...</a><br /></td></tr>
<tr class="separator:gae3abfa0c2180f80f80ac898d3bc2e043"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7ea5ff004af3f10269851c2aae923370"><td class="memItemLeft" align="right" valign="top">FlagStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_d_c___private___functions.html#ga7ea5ff004af3f10269851c2aae923370">ADC_GetRawFlagStatus</a> (uint16_t ADC_FLAG)</td></tr>
<tr class="memdesc:ga7ea5ff004af3f10269851c2aae923370"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the specified ADC flag is set or not.  <a href="#ga7ea5ff004af3f10269851c2aae923370">更多...</a><br /></td></tr>
<tr class="separator:ga7ea5ff004af3f10269851c2aae923370"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0e2073a409ebaf97c3bc324c54fdea0f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_d_c___private___functions.html#ga0e2073a409ebaf97c3bc324c54fdea0f">ADC_ThresholdsConfig</a> (uint16_t LowThreshold, uint16_t HighThreshold)</td></tr>
<tr class="memdesc:ga0e2073a409ebaf97c3bc324c54fdea0f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the high and low thresholds of the analog watchdog.  <a href="#ga0e2073a409ebaf97c3bc324c54fdea0f">更多...</a><br /></td></tr>
<tr class="separator:ga0e2073a409ebaf97c3bc324c54fdea0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf74315123cc41071bcaa9930a4f8b491"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_d_c___private___functions.html#gaf74315123cc41071bcaa9930a4f8b491">ADC_ThresholdsCompareCmd</a> (uint16_t Threshold_Config, FunctionalState NewState)</td></tr>
<tr class="memdesc:gaf74315123cc41071bcaa9930a4f8b491"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the thresholds to compare with the function of analog watchdog.  <a href="#gaf74315123cc41071bcaa9930a4f8b491">更多...</a><br /></td></tr>
<tr class="separator:gaf74315123cc41071bcaa9930a4f8b491"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<h2 class="groupheader">函数说明</h2>
<a id="gae3abfa0c2180f80f80ac898d3bc2e043"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae3abfa0c2180f80f80ac898d3bc2e043">&#9670;&nbsp;</a></span>ADC_ClearFlag()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADC_ClearFlag </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>ADC_FLAG</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the ADC pending interrupt flags. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ADC_FLAG</td><td>specifies the flag to clear. This parameter can be one of the following values: <ul>
<li>ADC_INTFLAG： ADC End of Continue Conversion interrupt flag </li>
<li>ADC_INTFLAG_RANGE_THRESHOLD：ADC conversion data in defined range interrupt flag </li>
<li>ADC_INTFLAG_HIGH_THRESHOLD：ADC conversion data above threshold interrupt flag </li>
<li>ADC_INTFLAG_LOW_THERSHOLD：ADC conversion data below threshold interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL15: ADC End of channel 15 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL14: ADC End of channel 14 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL13: ADC End of channel 13 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL12: ADC End of channel 12 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL11: ADC End of channel 11 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL10: ADC End of channel 10 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL9: ADC End of channel 9 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL8: ADC End of channel 8 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL7：ADC End of channel7 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL6：ADC End of channel6 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL5：ADC End of channel5 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL4：ADC End of channel4 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL3：ADC End of channel3 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL2：ADC End of channel2 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL1：ADC End of channel1 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL0：ADC End of channel0 conversion interrupt flag </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga06e8047db33c89ef576bf868f7d011c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga06e8047db33c89ef576bf868f7d011c8">&#9670;&nbsp;</a></span>ADC_ClearITPendingBit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADC_ClearITPendingBit </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>ADC_IT</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the ADC pending interrupt bits. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ADC_IT</td><td>specifies the ADC interrupt sources to clear. This parameter can be any combination of the following values: <ul>
<li>ADC_IT_CONTINUE: ADC End of Continue Conversion interrupt </li>
<li>ADC_IT_RANGE_THRESHOLD: ADC conversion data in defined range interrupt </li>
<li>ADC_IT_HIGH_THRESHOLD: ADC conversion data above threshold interrupt </li>
<li>ADC_IT_LOW_THRESHOLD: ADC conversion data below threshold interrupt </li>
<li>ADC_IT_CHANNEL15: ADC End of channel 15 conversion interrupt </li>
<li>ADC_IT_CHANNEL14: ADC End of channel 14 conversion interrupt </li>
<li>ADC_IT_CHANNEL13: ADC End of channel 13 conversion interrupt </li>
<li>ADC_IT_CHANNEL12: ADC End of channel 12 conversion interrupt </li>
<li>ADC_IT_CHANNEL11: ADC End of channel 11 conversion interrupt </li>
<li>ADC_IT_CHANNEL10: ADC End of channel 10 conversion interrupt </li>
<li>ADC_IT_CHANNEL9: ADC End of channel 9 conversion interrupt </li>
<li>ADC_IT_CHANNEL8: ADC End of channel 8 conversion interrupt </li>
<li>ADC_IT_CHANNEL7: ADC End of channel 7 conversion interrupt </li>
<li>ADC_IT_CHANNEL6: ADC End of channel 6 conversion interrupt </li>
<li>ADC_IT_CHANNEL5: ADC End of channel 5 conversion interrupt </li>
<li>ADC_IT_CHANNEL4: ADC End of channel 4 conversion interrupt </li>
<li>ADC_IT_CHANNEL3: ADC End of channel 3 conversion interrupt </li>
<li>ADC_IT_CHANNEL2: ADC End of channel 2 conversion interrupt </li>
<li>ADC_IT_CHANNEL1: ADC End of channel 1 conversion interrupt </li>
<li>ADC_IT_CHANNEL0: ADC End of channel 0 conversion interrupt </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga17fefa48db4b468048475c4a23356d69"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga17fefa48db4b468048475c4a23356d69">&#9670;&nbsp;</a></span>ADC_Cmd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADC_Cmd </td>
          <td>(</td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables or disables the ADC peripheral. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">NewState</td><td>The new state of the ADC peripheral. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga1962afdd9eebe5c896bbba2e4f26fe09"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1962afdd9eebe5c896bbba2e4f26fe09">&#9670;&nbsp;</a></span>ADC_DeInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADC_DeInit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Deinitializes the ADC peripheral registers to their default reset values. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga1cca8fc361e233eb5eb2b60f5dd28dda"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1cca8fc361e233eb5eb2b60f5dd28dda">&#9670;&nbsp;</a></span>ADC_GetAccValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t ADC_GetAccValue </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets ADC accumulation conversion result. </p>
<dl class="section note"><dt>注解</dt><dd>This function is only valid when RACC_EN is set. </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">ADC</td><td>accumulation conversion data </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gac66330e8d2a07e90c31102da2b7ed5db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac66330e8d2a07e90c31102da2b7ed5db">&#9670;&nbsp;</a></span>ADC_GetConversionValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t ADC_GetConversionValue </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>Channel</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the last ADC conversion result data for regular channel. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Channel</td><td>Selected channel to get ADC conversion value. This parameter can be one of the following values: <ul>
<li>ADC_SINGLE_CHANNEL_0: ADC channel 0 in single mode </li>
<li>ADC_SINGLE_CHANNEL_1: ADC channel 1 in single mode </li>
<li>ADC_SINGLE_CHANNEL_2: ADC channel 2 in single mode </li>
<li>ADC_SINGLE_CHANNEL_3: ADC channel 3 in single mode </li>
<li>ADC_SINGLE_CHANNEL_4: ADC channel 4 in single mode </li>
<li>ADC_SINGLE_CHANNEL_5: ADC channel 5 in single mode </li>
<li>ADC_SINGLE_CHANNEL_6: ADC channel 6 in single mode </li>
<li>ADC_SINGLE_CHANNEL_7: ADC channel 7 in single mode </li>
<li>ADC_SINGLE_CHANNEL_8: ADC channel 8 in single mode </li>
<li>ADC_SINGLE_CHANNEL_9: ADC channel 9 in single mode </li>
<li>ADC_SINGLE_CHANNEL_10: ADC channel 10 in single mode </li>
<li>ADC_SINGLE_CHANNEL_11: ADC channel 11 in single mode </li>
<li>ADC_SINGLE_CHANNEL_12: ADC channel 12 in single mode </li>
<li>ADC_SINGLE_CHANNEL_13: ADC channel 13 in single mode </li>
<li>ADC_SINGLE_CHANNEL_14: ADC channel 14 in single mode </li>
<li>ADC_SINGLE_CHANNEL_15: ADC channel 15 in single mode </li>
<li>ADC_CONTINUE_CHANNEL_0: ADC channel 0 in continue mode </li>
<li>ADC_CONTINUE_CHANNEL_1: ADC channel 1 in continue mode </li>
<li>ADC_CONTINUE_CHANNEL_2: ADC channel 2 in continue mode </li>
<li>ADC_CONTINUE_CHANNEL_3: ADC channel 3 in continue mode </li>
<li>ADC_CONTINUE_CHANNEL_4: ADC channel 4 in continue mode </li>
<li>ADC_CONTINUE_CHANNEL_5: ADC channel 5 in continue mode </li>
<li>ADC_CONTINUE_CHANNEL_6: ADC channel 6 in continue mode </li>
<li>ADC_CONTINUE_CHANNEL_7: ADC channel 7 in continue mode </li>
<li>ADC_CONTINUE_CHANNEL_8: ADC channel 8 in continue mode </li>
<li>ADC_CONTINUE_CHANNEL_9: ADC channel 9 in continue mode </li>
<li>ADC_CONTINUE_CHANNEL_10: ADC channel 10 in continue mode </li>
<li>ADC_CONTINUE_CHANNEL_11: ADC channel 11 in continue mode </li>
<li>ADC_CONTINUE_CHANNEL_12: ADC channel 12 in continue mode </li>
<li>ADC_CONTINUE_CHANNEL_13: ADC channel 13 in continue mode </li>
<li>ADC_CONTINUE_CHANNEL_14: ADC channel 14 in continue mode </li>
<li>ADC_CONTINUE_CHANNEL_15: ADC channel 15 in continue mode </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>Data conversion value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga0de1904ef4253ab214087422aedbbabe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0de1904ef4253ab214087422aedbbabe">&#9670;&nbsp;</a></span>ADC_GetFlagStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FlagStatus ADC_GetFlagStatus </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>ADC_FLAG</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks whether the specified ADC flag is set or not. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ADC_FLAG</td><td>specifies the flag to check. This parameter can be any combination of the following values: <ul>
<li>ADC_INTFLAG：ADC End of Continue Conversion interrupt flag </li>
<li>ADC_INTFLAG_RANGE_THRESHOLD：ADC conversion data in defined range interrupt flag </li>
<li>ADC_INTFLAG_HIGH_THRESHOLD：ADC conversion data above threshold interrupt flag </li>
<li>ADC_INTFLAG_LOW_THERSHOLD：ADC conversion data below threshold interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL15: ADC End of channel 15 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL14: ADC End of channel 14 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL13: ADC End of channel 13 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL12: ADC End of channel 12 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL11: ADC End of channel 11 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL10: ADC End of channel 10 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL9: ADC End of channel 9 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL8: ADC End of channel 8 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL7：ADC End of channel7 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL6：ADC End of channel6 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL5：ADC End of channel5 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL4：ADC End of channel4 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL3：ADC End of channel3 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL2：ADC End of channel2 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL1：ADC End of channel1 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL0：ADC End of channel0 conversion interrupt flag </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>new state of ADC_FLAG (SET or RESET). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga5d766f4ed702e465183b7d91cfbe12f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5d766f4ed702e465183b7d91cfbe12f1">&#9670;&nbsp;</a></span>ADC_GetITStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ITStatus ADC_GetITStatus </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>ADC_IT</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks whether the specified ADC interrupt is set or not. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ADC_IT</td><td>specifies the ADC interrupt sources to check. This parameter can be any combination of the following values: <ul>
<li>ADC_IT_CONTINUE: ADC End of Continue Conversion interrupt </li>
<li>ADC_IT_RANGE_THRESHOLD: ADC conversion data in defined range interrupt </li>
<li>ADC_IT_HIGH_THRESHOLD: ADC conversion data above threshold interrupt </li>
<li>ADC_IT_LOW_THRESHOLD: ADC conversion data below threshold interrupt </li>
<li>ADC_IT_CHANNEL15: ADC End of channel 15 conversion interrupt </li>
<li>ADC_IT_CHANNEL14: ADC End of channel 14 conversion interrupt </li>
<li>ADC_IT_CHANNEL13: ADC End of channel 13 conversion interrupt </li>
<li>ADC_IT_CHANNEL12: ADC End of channel 12 conversion interrupt </li>
<li>ADC_IT_CHANNEL11: ADC End of channel 11 conversion interrupt </li>
<li>ADC_IT_CHANNEL10: ADC End of channel 10 conversion interrupt </li>
<li>ADC_IT_CHANNEL9: ADC End of channel 9 conversion interrupt </li>
<li>ADC_IT_CHANNEL8: ADC End of channel 8 conversion interrupt </li>
<li>ADC_IT_CHANNEL7: ADC End of channel 7 conversion interrupt </li>
<li>ADC_IT_CHANNEL6: ADC End of channel 6 conversion interrupt </li>
<li>ADC_IT_CHANNEL5: ADC End of channel 5 conversion interrupt </li>
<li>ADC_IT_CHANNEL4: ADC End of channel 4 conversion interrupt </li>
<li>ADC_IT_CHANNEL3: ADC End of channel 3 conversion interrupt </li>
<li>ADC_IT_CHANNEL2: ADC End of channel 2 conversion interrupt </li>
<li>ADC_IT_CHANNEL1: ADC End of channel 1 conversion interrupt </li>
<li>ADC_IT_CHANNEL0: ADC End of channel 0 conversion interrupt </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>new state of ADC_FLAG (SET or RESET). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga7ea5ff004af3f10269851c2aae923370"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7ea5ff004af3f10269851c2aae923370">&#9670;&nbsp;</a></span>ADC_GetRawFlagStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FlagStatus ADC_GetRawFlagStatus </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>ADC_FLAG</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks whether the specified ADC flag is set or not. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ADC_FLAG</td><td>specifies the flag to check. This parameter can be any combination of the following values: <ul>
<li>ADC_INTFLAG： ADC End of Continue Conversion interrupt flag </li>
<li>ADC_INTFLAG_RANGE_THRESHOLD：ADC conversion data in defined range interrupt flag </li>
<li>ADC_INTFLAG_HIGH_THRESHOLD：ADC conversion data above threshold interrupt flag </li>
<li>ADC_INTFLAG_LOW_THERSHOLD：ADC conversion data below threshold interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL15: ADC End of channel 15 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL14: ADC End of channel 14 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL13: ADC End of channel 13 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL12: ADC End of channel 12 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL11: ADC End of channel 11 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL10: ADC End of channel 10 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL9: ADC End of channel 9 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL8: ADC End of channel 8 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL7：ADC End of channel7 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL6：ADC End of channel6 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL5：ADC End of channel5 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL4：ADC End of channel4 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL3：ADC End of channel3 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL2：ADC End of channel2 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL1：ADC End of channel1 conversion interrupt flag </li>
<li>ADC_INTFLAG_CHANNEL0：ADC End of channel0 conversion interrupt flag </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>new state of ADC_FLAG (SET or RESET). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gae64ae715dd57b437adeaa18bf28cc3ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae64ae715dd57b437adeaa18bf28cc3ef">&#9670;&nbsp;</a></span>ADC_GetSoftwareStartConvStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FlagStatus ADC_GetSoftwareStartConvStatus </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the selected ADC Software start conversion Status. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>new state of ADC software start conversion (SET or RESET). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gadc1012522059ab30d266fe9d634a2bde"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadc1012522059ab30d266fe9d634a2bde">&#9670;&nbsp;</a></span>ADC_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADC_Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_a_d_c___init_type_def.html">ADC_InitTypeDef</a> *&#160;</td>
          <td class="paramname"><em>ADC_InitStruct</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the ADC peripheral according to the specified parameters in the ADC_InitStruct. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ADC_InitStruct</td><td>pointer to an <a class="el" href="struct_a_d_c___init_type_def.html" title="ADC Init structure definition">ADC_InitTypeDef</a> structure that contains the configuration information for the ADC peripheral. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga1a7977f0de450fb7e1d38fd42d71ef33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1a7977f0de450fb7e1d38fd42d71ef33">&#9670;&nbsp;</a></span>ADC_ITConfig()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADC_ITConfig </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>ADC_IT</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables or disables the specified ADC interrupts. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ADC_IT</td><td>specifies the ADC interrupt sources to be enabled or disabled. This parameter can be any combination of the following values: <ul>
<li>ADC_IT_CONTINUE: ADC End of Continue Conversion interrupt </li>
<li>ADC_IT_RANGE_THRESHOLD: ADC conversion data in defined range interrupt </li>
<li>ADC_IT_HIGH_THRESHOLD: ADC conversion data above threshold interrupt </li>
<li>ADC_IT_LOW_THRESHOLD: ADC conversion data below threshold interrupt </li>
<li>ADC_IT_CHANNEL15: ADC End of channel 15 conversion interrupt </li>
<li>ADC_IT_CHANNEL14: ADC End of channel 14 conversion interrupt </li>
<li>ADC_IT_CHANNEL13: ADC End of channel 13 conversion interrupt </li>
<li>ADC_IT_CHANNEL12: ADC End of channel 12 conversion interrupt </li>
<li>ADC_IT_CHANNEL11: ADC End of channel 11 conversion interrupt </li>
<li>ADC_IT_CHANNEL10: ADC End of channel 10 conversion interrupt </li>
<li>ADC_IT_CHANNEL9: ADC End of channel 9 conversion interrupt </li>
<li>ADC_IT_CHANNEL8: ADC End of channel 8 conversion interrupt </li>
<li>ADC_IT_CHANNEL7: ADC End of channel 7 conversion interrupt </li>
<li>ADC_IT_CHANNEL6: ADC End of channel 6 conversion interrupt </li>
<li>ADC_IT_CHANNEL5: ADC End of channel 5 conversion interrupt </li>
<li>ADC_IT_CHANNEL4: ADC End of channel 4 conversion interrupt </li>
<li>ADC_IT_CHANNEL3: ADC End of channel 3 conversion interrupt </li>
<li>ADC_IT_CHANNEL2: ADC End of channel 2 conversion interrupt </li>
<li>ADC_IT_CHANNEL1: ADC End of channel 1 conversion interrupt </li>
<li>ADC_IT_CHANNEL0: ADC End of channel 0 conversion interrupt </li>
</ul>
</td></tr>
    <tr><td class="paramname">NewState</td><td>The new state of the specified ADC interrupts. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga70dcb2d976b8dc5cbcbc10ad5f6ff751"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga70dcb2d976b8dc5cbcbc10ad5f6ff751">&#9670;&nbsp;</a></span>ADC_SoftwareStartConvCmd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADC_SoftwareStartConvCmd </td>
          <td>(</td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables or disables the selected ADC software start conversion. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">NewState</td><td>The new state of the selected ADC software start conversion. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga6c6e754d1d0a98d56e465efaf73272ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6c6e754d1d0a98d56e465efaf73272ec">&#9670;&nbsp;</a></span>ADC_StructInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADC_StructInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_a_d_c___init_type_def.html">ADC_InitTypeDef</a> *&#160;</td>
          <td class="paramname"><em>ADC_InitStruct</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills each ADC_InitStruct member with its default value. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ADC_InitStruct</td><td>: pointer to an <a class="el" href="struct_a_d_c___init_type_def.html" title="ADC Init structure definition">ADC_InitTypeDef</a> structure which will be initialized. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaf74315123cc41071bcaa9930a4f8b491"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf74315123cc41071bcaa9930a4f8b491">&#9670;&nbsp;</a></span>ADC_ThresholdsCompareCmd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADC_ThresholdsCompareCmd </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>Threshold_Config</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables or disables the thresholds to compare with the function of analog watchdog. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Threshold_Config</td><td>the ADC analog watchdog threshold configuration. This parameter can be any combination of the following values: <ul>
<li>ADC_High_Threshold_Compare: ADC high threshold compare </li>
<li>ADC_Low_Threshold_Compare: ADC low threshold compare </li>
<li>ADC_Range_Threshold_Compare: ADC range threshold compare </li>
</ul>
</td></tr>
    <tr><td class="paramname">NewState</td><td>The new state of the selected ADC software starts conversion. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga0e2073a409ebaf97c3bc324c54fdea0f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0e2073a409ebaf97c3bc324c54fdea0f">&#9670;&nbsp;</a></span>ADC_ThresholdsConfig()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADC_ThresholdsConfig </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>LowThreshold</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>HighThreshold</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures the high and low thresholds of the analog watchdog. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">LowThreshold</td><td>the ADC analog watchdog Low threshold value. This parameter must be a 12bit value. </td></tr>
    <tr><td class="paramname">HighThreshold</td><td>the ADC analog watchdog High threshold value. This parameter must be a 12bit value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
